package com.xms.form.core.component;

import java.io.Serializable;

/**
 * <p>
 * FormControlType
 * </p>
 *
 * @author migo
 * @since 2021/9/3
 */
public enum FormControlType implements Serializable {
    None(-1, "none"),
    none(-1, "none"),
    Standard(0,"standard"),
    standard(0,"standard"),
    Hidden(1,"hidden"),
    hidden(1,"hidden"),
    IFrame(2,"iframe"),
    iFrame(2,"iframe"),
    iframe(2,"iframe"),
    Lookup(3,"lookup"),
    lookup(3,"lookup"),
    OptionSet(4,"optionset"),
    optionSet(4,"optionset"),
    optionset(4,"optionset"),
    SubGrid(5,"subgrid"),
    subGrid(5,"subgrid"),
    subgrid(5,"subgrid"),
    WebResource(6,"webresource"),
    webResource(6,"webresource"),
    webresource(6,"webresource"),
    FreeText(7,"freetext"),
    freeText(7,"freetext"),
    freetext(7,"freetext"),
    Grid(8,"grid"),
    grid(8,"grid"),
    Chart(9,"chart"),
    Report(10,"report"),
    report(10,"report"),
    Label(11,"label");

    private FormControlType(int value, String msg) {
        this.val = value;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return val + "";
    }

    public int val() {
        return val;
    }

    public String msg() {
        return msg;
    }

    private int val;
    private String msg;
}
